<extend name="Layout/ins_page" />
<block name="content">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Form</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <link href="/sap/demo.css" rel="stylesheet" type="text/css" />
        <script src="/sap/scripts/boot.js" type="text/javascript"></script>
    </head>
    <style>

        td{
            margin-top:10px;
        }
    </style>
    <body>

    <form id="form1" name="form1" method="post" action="/Report/profitreportxdata/">
    <!--<form id="form1" name="form1" method="post" action="http://insights.g-town.com.cn:8090/ProfitReportX/ProfitReport-X.php">-->

        <div>
            开始时间<br />
            <input name="FromDate" id="FromDate" class="mini-datepicker" format="yyyy-MM-dd " showTime="true" valueType='string'
                   value="<?php echo date('Y-m-d', time() - 86400 * 7) ?>"/>
        </div>
        <div>
            结束时间<br />
            <input name="ToDate" id="ToDate" class="mini-datepicker" format="yyyy-MM-dd " showTime="true" valueType='string'
                   value="<?php echo date('Y-m-d ') ?>"/>
        </div>

        <br />
        <div><input type="button" onclick="webData()" value="提交" /></div>

    </form>

    </body>
    </html>

</block>
<block name="js">
    <script>
        function webData() {
            $('form[id=form1]').attr('action', '/OutsideQuery/day20180807result/');
            $('form[id=form1]').submit();
        }
        function exportExcel() {
            $('form[id=form1]').attr('action', '/OutsideQuery/day20180807result/');
            $('form[id=form1]').submit();
        }
    </script>
</block>